/*
 *代码由框架生成,任何更改都可能导致被代码生成器覆盖
 *如果数据库字段发生变化，请在代码生器重新生成此Model
 */
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using VOL.Entity.SystemModels;

namespace VOL.Entity.DomainModels
{
    [Entity(TableCnName = "订单管理",TableName = "mes_ordermanagement")]
    public partial class mes_ordermanagement:BaseEntity
    {
        /// <summary>
       ///主键
       /// </summary>
       [Key]
       [Display(Name ="主键")]
       [Column(TypeName="int")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public int Id { get; set; }

       /// <summary>
       ///订单编号
       /// </summary>
       [Display(Name ="订单编号")]
       [MaxLength(255)]
       [Column(TypeName="nvarchar(255)")]
       [Editable(true)]
       public string o_number { get; set; }

       /// <summary>
       ///订单条码
       /// </summary>
       [Display(Name ="订单条码")]
       [MaxLength(255)]
       [Column(TypeName="nvarchar(255)")]
       [Editable(true)]
       public string o_barcode { get; set; }

       /// <summary>
       ///下单日期
       /// </summary>
       [Display(Name ="下单日期")]
       [MaxLength(255)]
       [Column(TypeName="nvarchar(255)")]
       [Editable(true)]
       public string xiadan_date { get; set; }

       /// <summary>
       ///交货日期
       /// </summary>
       [Display(Name ="交货日期")]
       [MaxLength(255)]
       [Column(TypeName="nvarchar(255)")]
       [Editable(true)]
       public string jiaohuo_date { get; set; }

       /// <summary>
       ///备注
       /// </summary>
       [Display(Name ="备注")]
       [MaxLength(255)]
       [Column(TypeName="nvarchar(255)")]
       [Editable(true)]
       public string Comment { get; set; }

       /// <summary>
       ///客户id
       /// </summary>
       [Display(Name ="客户id")]
       [Column(TypeName="int")]
       [Editable(true)]
       public int? kh_id { get; set; }

       /// <summary>
       ///客户名称
       /// </summary>
       [Display(Name ="客户名称")]
       [MaxLength(255)]
       [Column(TypeName="nvarchar(255)")]
       [Editable(true)]
       public string kh_name { get; set; }

       /// <summary>
       ///创建时间
       /// </summary>
       [Display(Name ="创建时间")]
       [MaxLength(255)]
       [Column(TypeName="nvarchar(255)")]
       [Editable(true)]
       public string create_time { get; set; }

       /// <summary>
       ///完成日期
       /// </summary>
       [Display(Name ="完成日期")]
       [MaxLength(255)]
       [Column(TypeName="nvarchar(255)")]
       [Editable(true)]
       public string wancheng_date { get; set; }

       /// <summary>
       ///完成状态
       /// </summary>
       [Display(Name ="完成状态")]
       [MaxLength(255)]
       [Column(TypeName="nvarchar(255)")]
       [Editable(true)]
       public string wancheng_status { get; set; }

       /// <summary>
       ///工序名称
       /// </summary>
       [Display(Name ="工序名称")]
       [MaxLength(255)]
       [Column(TypeName="nvarchar(255)")]
       [Editable(true)]
       public string gongxu_name { get; set; }

       /// <summary>
       ///工序编号
       /// </summary>
       [Display(Name ="工序编号")]
       [MaxLength(255)]
       [Column(TypeName="nvarchar(255)")]
       [Editable(true)]
       public string gongxu_no { get; set; }

       /// <summary>
       ///逾期天数
       /// </summary>
       [Display(Name ="逾期天数")]
       [Column(TypeName="int")]
       [Editable(true)]
       public int? yuqi { get; set; }

       /// <summary>
       ///剩余天数
       /// </summary>
       [Display(Name ="剩余天数")]
       [Column(TypeName="int")]
       [Editable(true)]
       public int? shengyu { get; set; }

       /// <summary>
       ///发货日期
       /// </summary>
       [Display(Name ="发货日期")]
       [MaxLength(255)]
       [Column(TypeName="nvarchar(255)")]
       [Editable(true)]
       public string fahuo { get; set; }

       /// <summary>
       ///收款日期
       /// </summary>
       [Display(Name ="收款日期")]
       [MaxLength(255)]
       [Column(TypeName="nvarchar(255)")]
       [Editable(true)]
       public string shoukuan { get; set; }

       /// <summary>
       ///状态
       /// </summary>
       [Display(Name ="状态")]
       [MaxLength(255)]
       [Column(TypeName="nvarchar(255)")]
       [Editable(true)]
       public string status { get; set; }

       /// <summary>
       ///是否下发
       /// </summary>
       [Display(Name ="是否下发")]
       [MaxLength(255)]
       [Column(TypeName="nvarchar(255)")]
       [Editable(true)]
       public string is_xiafa { get; set; }

       /// <summary>
       ///是否入库
       /// </summary>
       [Display(Name ="是否入库")]
       [MaxLength(255)]
       [Column(TypeName="nvarchar(255)")]
       [Editable(true)]
       public string is_ruku { get; set; }

       /// <summary>
       ///是否已开发票
       /// </summary>
       [Display(Name ="是否已开发票")]
       [MaxLength(255)]
       [Column(TypeName="nvarchar(255)")]
       [Editable(true)]
       public string fapiao { get; set; }

       /// <summary>
       ///商品信息
       /// </summary>
       [Display(Name ="商品信息")]
       [Column(TypeName="nvarchar(max)")]
       [Editable(true)]
       public string goods_info { get; set; }

       /// <summary>
       ///成本
       /// </summary>
       [Display(Name ="成本")]
       [DisplayFormat(DataFormatString="11,2")]
       [Column(TypeName="decimal")]
       [Editable(true)]
       public decimal? chengben { get; set; }

       /// <summary>
       ///关联成产id
       /// </summary>
       [Display(Name ="关联成产id")]
       [MaxLength(255)]
       [Column(TypeName="nvarchar(255)")]
       [Editable(true)]
       public string p_id { get; set; }

       /// <summary>
       ///订单总金额
       /// </summary>
       [Display(Name ="订单总金额")]
       [DisplayFormat(DataFormatString="11,2")]
       [Column(TypeName="decimal")]
       [Editable(true)]
       public decimal? all_price { get; set; }

       /// <summary>
       ///应收金额
       /// </summary>
       [Display(Name ="应收金额")]
       [DisplayFormat(DataFormatString="11,2")]
       [Column(TypeName="decimal")]
       [Editable(true)]
       public decimal? receivable { get; set; }

       /// <summary>
       ///已收金额
       /// </summary>
       [Display(Name ="已收金额")]
       [DisplayFormat(DataFormatString="11,2")]
       [Column(TypeName="decimal")]
       [Editable(true)]
       public decimal? received { get; set; }

       /// <summary>
       ///应收发票
       /// </summary>
       [Display(Name ="应收发票")]
       [DisplayFormat(DataFormatString="11,2")]
       [Column(TypeName="decimal")]
       [Editable(true)]
       public decimal? invoice_receivable { get; set; }

       /// <summary>
       ///已收发票
       /// </summary>
       [Display(Name ="已收发票")]
       [DisplayFormat(DataFormatString="11,2")]
       [Column(TypeName="decimal")]
       [Editable(true)]
       public decimal? invoice_received { get; set; }

       /// <summary>
       ///合同号
       /// </summary>
       [Display(Name ="合同号")]
       [MaxLength(255)]
       [Column(TypeName="nvarchar(255)")]
       [Editable(true)]
       public string contract_no { get; set; }

       /// <summary>
       ///合同时间
       /// </summary>
       [Display(Name ="合同时间")]
       [MaxLength(255)]
       [Column(TypeName="nvarchar(255)")]
       [Editable(true)]
       public string contract_time { get; set; }

       /// <summary>
       ///合同地址
       /// </summary>
       [Display(Name ="合同地址")]
       [MaxLength(255)]
       [Column(TypeName="nvarchar(255)")]
       [Editable(true)]
       public string contract_address { get; set; }

       /// <summary>
       ///表面处理
       /// </summary>
       [Display(Name ="表面处理")]
       [MaxLength(255)]
       [Column(TypeName="nvarchar(255)")]
       [Editable(true)]
       public string surface_treatment { get; set; }

       /// <summary>
       ///包装
       /// </summary>
       [Display(Name ="包装")]
       [MaxLength(255)]
       [Column(TypeName="nvarchar(255)")]
       [Editable(true)]
       public string packing { get; set; }

       /// <summary>
       ///生产状态
       /// </summary>
       [Display(Name ="生产状态")]
       [MaxLength(255)]
       [Column(TypeName="nvarchar(255)")]
       [Editable(true)]
       public string production_status { get; set; }

       /// <summary>
       ///预估成本
       /// </summary>
       [Display(Name ="预估成本")]
       [DisplayFormat(DataFormatString="11,2")]
       [Column(TypeName="decimal")]
       [Editable(true)]
       public decimal? yuguchengben { get; set; }

       /// <summary>
       ///预估原材料
       /// </summary>
       [Display(Name ="预估原材料")]
       [DisplayFormat(DataFormatString="11,2")]
       [Column(TypeName="decimal")]
       [Editable(true)]
       public decimal? yuguyuancailiao { get; set; }

       /// <summary>
       ///预估人工
       /// </summary>
       [Display(Name ="预估人工")]
       [DisplayFormat(DataFormatString="11,2")]
       [Column(TypeName="decimal")]
       [Editable(true)]
       public decimal? yugurengong { get; set; }

       /// <summary>
       ///预估其他
       /// </summary>
       [Display(Name ="预估其他")]
       [DisplayFormat(DataFormatString="11,2")]
       [Column(TypeName="decimal")]
       [Editable(true)]
       public decimal? yuguqita { get; set; }

       /// <summary>
       ///最晚发货日期
       /// </summary>
       [Display(Name ="最晚发货日期")]
       [MaxLength(255)]
       [Column(TypeName="nvarchar(255)")]
       [Editable(true)]
       public string last_delivery_time { get; set; }

       /// <summary>
       ///实际原材料
       /// </summary>
       [Display(Name ="实际原材料")]
       [DisplayFormat(DataFormatString="11,2")]
       [Column(TypeName="decimal")]
       [Editable(true)]
       public decimal? shijiyuancailiao { get; set; }

       /// <summary>
       ///实际人工
       /// </summary>
       [Display(Name ="实际人工")]
       [DisplayFormat(DataFormatString="11,2")]
       [Column(TypeName="decimal")]
       [Editable(true)]
       public decimal? shijirengong { get; set; }

       /// <summary>
       ///实际其他
       /// </summary>
       [Display(Name ="实际其他")]
       [DisplayFormat(DataFormatString="11,2")]
       [Column(TypeName="decimal")]
       [Editable(true)]
       public decimal? shijiqita { get; set; }

       /// <summary>
       ///不知道这啥
       /// </summary>
       [Display(Name ="不知道这啥")]
       [DisplayFormat(DataFormatString="11,2")]
       [Column(TypeName="decimal")]
       [Editable(true)]
       public decimal? scrap_loss { get; set; }

       /// <summary>
       ///预估应收金额
       /// </summary>
       [Display(Name ="预估应收金额")]
       [DisplayFormat(DataFormatString="18,2")]
       [Column(TypeName="decimal")]
       [Editable(true)]
       public decimal? receivable_plan { get; set; }

       /// <summary>
       ///币种id
       /// </summary>
       [Display(Name ="币种id")]
       [MaxLength(255)]
       [Column(TypeName="nvarchar(255)")]
       [Editable(true)]
       public string BiZhong { get; set; }

       /// <summary>
       ///币种名称
       /// </summary>
       [Display(Name ="币种名称")]
       [MaxLength(255)]
       [Column(TypeName="nvarchar(255)")]
       [Editable(true)]
       public string bz_name { get; set; }

       /// <summary>
       ///当时汇率
       /// </summary>
       [Display(Name ="当时汇率")]
       [DisplayFormat(DataFormatString="18,4")]
       [Column(TypeName="decimal")]
       [Editable(true)]
       public decimal? exchange_rate { get; set; }

       /// <summary>
       ///原币金额
       /// </summary>
       [Display(Name ="原币金额")]
       [DisplayFormat(DataFormatString="18,2")]
       [Column(TypeName="decimal")]
       [Editable(true)]
       public decimal? yuanbijine { get; set; }

       /// <summary>
       ///原币应收金额
       /// </summary>
       [Display(Name ="原币应收金额")]
       [DisplayFormat(DataFormatString="18,2")]
       [Column(TypeName="decimal")]
       [Editable(true)]
       public decimal? yuanbi_received { get; set; }

       /// <summary>
       ///原币已收金额
       /// </summary>
       [Display(Name ="原币已收金额")]
       [DisplayFormat(DataFormatString="18,2")]
       [Column(TypeName="decimal")]
       [Editable(true)]
       public decimal? yuanbi_receivable { get; set; }

       /// <summary>
       ///原币应收发票
       /// </summary>
       [Display(Name ="原币应收发票")]
       [DisplayFormat(DataFormatString="18,2")]
       [Column(TypeName="decimal")]
       [Editable(true)]
       public decimal? yuanbi_invoice_received { get; set; }

       /// <summary>
       ///原币实收发票
       /// </summary>
       [Display(Name ="原币实收发票")]
       [DisplayFormat(DataFormatString="18,2")]
       [Column(TypeName="decimal")]
       [Editable(true)]
       public decimal? yuanbi_invoice_receivable { get; set; }

       /// <summary>
       ///1成品2原材料
       /// </summary>
       [Display(Name ="1成品2原材料")]
       [MaxLength(50)]
       [Column(TypeName="nvarchar(50)")]
       [Editable(true)]
       public string type { get; set; }

       /// <summary>
       ///收货人
       /// </summary>
       [Display(Name ="收货人")]
       [MaxLength(500)]
       [Column(TypeName="nvarchar(500)")]
       [Editable(true)]
       public string ShouHuoMen { get; set; }

       /// <summary>
       ///收货地址
       /// </summary>
       [Display(Name ="收货地址")]
       [MaxLength(500)]
       [Column(TypeName="nvarchar(500)")]
       [Editable(true)]
       public string ShouHuoAdress { get; set; }

       /// <summary>
       ///收货人联系方式
       /// </summary>
       [Display(Name ="收货人联系方式")]
       [MaxLength(500)]
       [Column(TypeName="nvarchar(500)")]
       [Editable(true)]
       public string ShouHuoTel { get; set; }

       /// <summary>
       ///税率
       /// </summary>
       [Display(Name ="税率")]
       [MaxLength(500)]
       [Column(TypeName="nvarchar(500)")]
       [Editable(true)]
       public string shuilv { get; set; }

       /// <summary>
       ///未税
       /// </summary>
       [Display(Name ="未税")]
       [MaxLength(500)]
       [Column(TypeName="nvarchar(500)")]
       [Editable(true)]
       public string weishui { get; set; }

       
    }
}